package net.flydy.ywxcx.wxcloudrun.config;

import net.flydy.ywxcx.wxcloudrun.common.MyHttpClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SomeOtherConfig {

    @Bean(initMethod = "init", destroyMethod = "destroy", name = "myHttpClient")
    @ConfigurationProperties(prefix = "myhttpclient")
    public MyHttpClient myHttpClient() {
        return new MyHttpClient();
    }
}
